package log;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class MyLog4J
{
	  public static void main(String[] args)
	   {
		  PropertyConfigurator.configure("log4j.properties");
			 
	      Logger logger = Logger.getLogger(MyLog4J.class);  
	      // printing methods:
	      logger.info("Hello World!");
	      logger.debug("Hello World!");
	      logger.warn("Hello World!"); 
	      logger.error("Hello World!");
	      logger.fatal("Hello World!");
	   }
}
